package cn.dlc.com.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @Description: 区域编码表
 * @author： tanzy
 * @date：   2021-03-30
 * @version： V1.0
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("basedata_area")
public class BaseDataArea implements Serializable {
    private static final long serialVersionUID = 1L;

	/**
	 * areaCode
	*/
	@TableId(type = IdType.ASSIGN_UUID)
	@Size(max=50, message="areaCode(areaCode)长度不能大于50")
	private String areaCode;

	/**
	 * areaName
	*/
	@Size(max=50, message="areaName(areaName)长度不能大于50")
	private String areaName;

	/**
	 * parentCode
	*/
	@Size(max=50, message="parentCode(parentCode)长度不能大于50")
	private String parentCode;

	/**
	 * gpsx
	*/
	@Size(max=50, message="gpsx(gpsx)长度不能大于50")
	private String gpsx;

	/**
	 * gpsy
	*/
	@Size(max=50, message="gpsy(gpsy)长度不能大于50")
	private String gpsy;

	/**
	 * level
	*/
	@Size(max=10, message="level(level)长度不能大于10")
	private String level;

	/**
	 * grade
	*/
	@Size(max=10, message="grade(grade)长度不能大于10")
	private String grade;

	@TableField(exist = false)
	List<BaseDataArea> areaList = new ArrayList<>();

}
